package com.wgworkshop.pems.repository;

import com.wgworkshop.pems.entity.ClassHourEntity;
import org.springframework.data.domain.Sort;
import org.springframework.data.repository.CrudRepository;
import org.springframework.data.repository.PagingAndSortingRepository;
import org.springframework.stereotype.Repository;

/**
 * 课时库。
 * Created by wlc on 2017/7/7.
 */
@Repository
public interface ClassHourRepository extends PagingAndSortingRepository<ClassHourEntity, Long>, ClassHourRepositoryCustom {
    Iterable<ClassHourEntity> findByStudentId(Long id, Sort sort);
}
